<template>
  <section id="assets">
    <div class="title">资产&nbsp;&nbsp;&gt;&nbsp;&nbsp;{{title}}
      <div>账户：{{idCard}}</div>
    </div>
    <div class="content clearfix">
      <div class="pull_left">
        <div class="recharge">
          <div class="title">充值</div>
          <ul>
            <router-link to="/assets/usdt" tag="li">USDT直购</router-link>
            <router-link to="/assets/recharge" tag="li">快速充值</router-link>
            <router-link to="/assets/rechargeRecords" tag="li">充值记录</router-link>
          </ul>
        </div>
        <div class="withdraw">
          <div class="title">提现</div>
          <ul>
            <router-link to="/assets/withdraw" tag="li">提现</router-link>
            <router-link to="/assets/withdrawRecords" tag="li">提现记录</router-link>
          </ul>
        </div>
      </div>
      <div class="pull_right">
        <router-view @title="changeTitle($event)"></router-view>
      </div>
    </div>
  </section>
</template>
<script>
export default {
  data() {
    return {
      title:'USDT直购'
    }
  },
  computed:{
    idCard() {
      return this.$store.state.user.user_number;
    }
  },
  methods: {
    changeTitle(param) {
      this.title = param;
    }
  },
  created(){
    
  },
  destroyed() {
    
  }
}
</script>
